import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { BackComponent } from './back/back.component';

const routerConfig: Routes = [
  {
    path: '', component: BackComponent, children: [
      { path: '', redirectTo: 'personal', pathMatch: 'full' },
      { path: 'personal', loadChildren: '../personal-center-module/personal-center-module.module#PersonalCenterModuleModule' },
      { path: 'user', loadChildren: '../user-module/user-module.module#UserModuleModule' },
      { path: 'inquiry', loadChildren: '../inquiry-module/inquiry-module.module#LoginModuleModule' },
    ]
  },
];

@NgModule({
  declarations: [],
  imports: [
    RouterModule.forChild(routerConfig)
  ],
  exports: [],
  bootstrap: [],
  providers: [
  ]
})
export class BackRouterModule {
  constructor() {
  }
}